import React, { Component } from 'react';
import styles from './index.module.scss';
import classNames from 'classnames';
import { update } from '@/utils/immutableUtil';
import Markdown from 'markdown-to-jsx';

class Comp extends Component {
  shouldComponentUpdate = (np, ns) => update.call(this, np, ns);
  render() {
    return (
      <div className={styles.container + ' markdown-body'}>
        <Markdown>{this.props.thinking}</Markdown>
      </div>
    );
  }
}

export default Comp;
